import 'package:ati_package/core/utils/ati_enum.dart';
import 'package:ati_package/pages/common/ati_scaffold.dart';
import 'package:ati_package/pages/common/widgets/ati_common_btn.dart';
import 'package:ati_package/pages/common/widgets/ati_text_input.dart';
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';

class ChangeEmailView extends StatefulWidget {
  const ChangeEmailView({super.key});

  @override
  State<ChangeEmailView> createState() => _ChangeEmailViewtate();
}

class _ChangeEmailViewtate extends State<ChangeEmailView> {
  @override
  Widget build(BuildContext context) {
    return AtiScaffold(
      title: '修改邮箱',
      actionWidget: AtiCommonBtn(
        width: 57.5.r,
        height: 25.r,
        onPressed: () {},
        titleStr: '提交',
      ),
      body: Container(
        padding: EdgeInsets.symmetric(vertical: 7.5.r, horizontal: 16.r),
        child: Column(
          children: [
            AtiTextInput(
              name: 'oldPassword',
              hint: '请输入新的邮箱',
              showClearButton: true,
              validator: (val) => val == null || val.isEmpty ? '请输入新的邮箱' : null,
            ),
            AtiTextInput(
              name: 'oldPassword',
              hint: '请输入验证码',
              showClearButton: true,
              inputType: AtiInputType.textCode,
              validator: (val) => val == null || val.isEmpty ? '请输入验证码' : null,
            ),
          ],
        ),
      ),
    );
  }
}
